home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / genovr.zip / GENOVR.TXT < prev   
Text File  |  1991-08-18  |  1KB  |  24 lines

  1.                        General Overlay Support
  2.  
  3. The support for overlays in Turbo Pascal requires the program to 
  4. open the overlay support file as a file and set up an overlay 
  5. buffer. This can cause problems if overlaid units need to execute 
  6. initialization code before the main program can call the overlay 
  7. setup routines. The solution to this problem is generally to include 
  8. a special unit which initializes the overlay file.
  9.  
  10. The general overlay support unit (GENOVR.PAS) is designed to open an 
  11. overlay file in the same directory as the program being executed. It 
  12. will open the overlay, then attempt to load it into EMS memory. If 
  13. there is no EMS memory available, the program will then attempt to 
  14. expand the overlay buffer to allow as much of the program as 
  15. possible into memory, leaving 64 kilobytes of memory free for the 
  16. heap.
  17.  
  18. Restrictions: this unit uses the command parameter routines to 
  19. obtain the name of the overlay file, so they will not work under any 
  20. version of DOS earlier than 3.0 without being modified.
  21.  
  22. Disclaimer: this unit is provided as is, without warranty of any 
  23. kind. Use it at your own risk. 
  24.